home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: pete@borland.com (Pete Becker)
- Newsgroups: comp.lang.c++
- Subject: Re: VC++ 4.0 and C++ syntax
- Date: 16 Apr 1996 16:00:36 GMT
- Organization: Borland International
- Message-ID: <4l0g74$fs4@druid.borland.com>
- References: <317290A7.57C0@spr.com>
- NNTP-Posting-Host: pbecker.borland.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <317290A7.57C0@spr.com>, sudip@spr.com says...
- >
- >Greetings,
- >
- >VC++ 4.0 allows the following syntax to obtain the address of
- >a class member function
- >
- >CObArray Ob;
- >Ob.SetSize(1);
- >
- >if (0 == Ob.GetSize ) // compiles and links
- >{
- > return;
- >}
- >
- >The call Ob.GetSize gets the address of the GetSize() fn on
- >CObArray. Is this legal syntax?...the ARM indicates that the
- >address of a member function (or a member) is obtained using
- >the :: operator.
-
- No, it is not legal. It never has been.
-
-